﻿using KeYan.Service.Common.Enum;
using KeYan.Service.Model.OrderForm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeYan.Service.IService.OrderFrom
{
    public interface OrderFormIService
    {
        /// <summary>
        /// 添加订单
        /// </summary>
        /// <returns></returns>
        Task<Resilt<int>> AddOrder(OrderInfo orderInfo);
        /// <summary>
        /// 通过id进行软删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Resilt<int>> SoftDelOrder(int id);
        /// <summary>
        /// 查询订单
        /// </summary>
        /// <param name="orderNumber">订单编号</param>
        /// <param name="serviceName">服务名称</param>
        /// <returns></returns>
        List<OrderInfo> SelOrder(string orderNumber, string serviceName);
    }
}
